package com.youlai.boot.system.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.youlai.boot.common.base.BasePageQuery;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 张雨润
 * @date 2025/2/25 14:31
 * @Description 申请回收筛选查询条件
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RecycleRequestQuery extends BasePageQuery {
    // 用户名
    private String username;
    // 机构名
    private String orgName;
    //联系方式
    private String mobile;
    // 主表状态
    private List<Integer> status;
    // 收益区间
    private BigDecimal minExpectReturn;
    private BigDecimal maxExpectReturn;
    //预约时间区间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    private LocalDateTime recycleTimeStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    private LocalDateTime recycleTimeEnd;
    // 创建时间区间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTimeStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTimeEnd;
}
